<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
	if(session.getAttribute("currentUser")==null){
		response.sendRedirect("login.jsp");
	}
	String mainPage = (String) request.getAttribute("mainPage");
	if (mainPage == null || "".equals(mainPage)) {
		mainPage = "common/default.jsp";
	}
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/studentInfo.css"
	rel="stylesheet">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/widget/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/widget/bootstrap/css/bootstrap-responsive.min.css">
</head>
<body>
	<div class="container">
		<jsp:include page="common/head.jsp"></jsp:include>
		<jsp:include page="common/menu.jsp"></jsp:include>
		<jsp:include page="common/nav.jsp"></jsp:include>
		<jsp:include page="<%=mainPage%>"></jsp:include>
		<jsp:include page="common/foot.jsp"></jsp:include>
	</div>

	<!-- js放在最后提升页面加载速度 -->
	<script
		src="${pageContext.request.contextPath}/widget/bootstrap/js/jquery.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/widget/bootstrap/js/jquery.min.map"></script>
	<script
		src="${pageContext.request.contextPath}/widget/bootstrap/js/bootstrap.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/widget/My97DatePicker/WdatePicker.js"></script>
</body>
</html>